package com.cango.student.database.mybatis.usermapper;

import com.cango.student.database.mybatis.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface UserMapper {
    @Insert("INSERT INTO user(id,name) VALUES (#{id},#{name})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    public void insert(User user);
}
